package org.sagitta.httprpc.hessian.adaptor;

public class HessianUtil {
	
	public static String byteArrayToHexString(byte[] data) {
		if (data.length == 0) {
			return "";
		}

		StringBuilder sb = new StringBuilder();

		for (byte b : data) {
			sb.append(String.format("%#02x ", b));
		}
		
		return sb.toString();
	}
}
